package cn.crex1.microservice.oauth.service;

import cn.crex1.microservice.common.vo.Result;
import cn.crex1.microservice.common.vo.UserVo;
import cn.crex1.microservice.oauth.service.impl.UserServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "ctp-upms",fallback = UserServiceImpl.class)
public interface UserService {
    @GetMapping("user/findByUsername/{username}")
    Result<UserVo> findByUsername(@PathVariable("username") String username);
}
